package org.sepheriel.airy2d.math;

import java.util.zip.Adler32;
import java.util.zip.Checksum;

public class Util {
	
	public static long strToAdler32(String str)
	{
		byte bytes[] = str.getBytes();
		
		Checksum check = new Adler32();
		
		check.update(bytes,0,bytes.length);
		
		return check.getValue();
	}

}
